﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using QD.Web;
using WAD.DAL;

namespace WAD.WEB.AppCode
{
    public class WebBase : WebPage
    {
       protected Dictionary<string, object> Get(int id)
        {
            Dictionary<string, object> dic = DaoUrlSource.Get("url_source", "id=" + id, "url,source");
            return dic;
        }

       protected string GetHtml(int id)
       {
           object o = DaoUrlSource.ExecuteScalar(string.Format("select source from url_source where id={0}", id));
           if (o == null) return "";
           return o.ToString();
       }
    }
}